Pod::Spec.new do |s|
  s.name         = "Commom"
  s.version      = "0.0.1"
  s.summary      = "Commom bage"
  s.description  = "test"
  s.homepage     = "http://EXAMPLE/Commom"
  s.license      = "MIT"
  s.author       = { "山刘" => "liushan@segimail.com" }
  s.source       = { :git => "https://gitee.com/samcoding/Commom.git", :tag => "#{s.version}" }
  # s.source       = { :path => "/Users/shanliu/Desktop/MediatorCreate/Common/trunk/Commom.podspec", :tag => "#{s.version}" }
  s.static_framework  =  true
  s.requires_arc = true
  s.platform     = :ios, "8.0"
  s.source_files  = "Commom/Class/**/*"
  s.public_header_files = "Commom/Class/**/*.h"

  # 中介跳转组件
  s.subspec 'SEGMediator' do|a|
    a.source_files  = "Commom/Class/SEGMediator/**/*"
    a.public_header_files = "Commom/Class/SEGMediator/**/*.h"
  end

  # 平台组件
  s.subspec 'SEGPlatform' do|platform|
    platform.source_files  = "Commom/Class/SEGPlatform/**/*"
    platform.public_header_files = "Commom/Class/SEGPlatform/**/*.h"
  end   

  # 服务器相关配置
  s.subspec 'SEGServerManager' do|server|
    server.source_files  = "Commom/Class/SEGServerManager/**/*"
    server.public_header_files = "Commom/Class/SEGServerManager/**/*.h"
    server.dependency "Commom/SEGPlatform"
  end

  # 接口请求&模型组件
  s.subspec 'SEGInterfaceManager' do|interface|
    interface.source_files  = "Commom/Class/SEGInterfaceManager/**/*"
    interface.public_header_files = "Commom/Class/SEGInterfaceManager/**/*.h"
    interface.dependency "Commom/SEGServerManager"
    interface.dependency "Commom/SEGTools/SEGModel"
  end

  # 颜色组件
  s.subspec 'SEGColor' do|color|
    color.source_files  = "Commom/Class/SEGColor/**/*"
    color.public_header_files = "Commom/Class/SEGColor/**/*.h"
    color.dependency "Commom/SEGPlatform"
  end

  # 工具总组件
  s.subspec 'SEGTools'do|tool|
    tool.source_files  = "Commom/Class/SEGTools/**/*"
    tool.public_header_files = "Commom/Class/SEGTools/**/*.h"

    # 工具-YYModel
    tool.subspec 'SEGModel'do|tool_m|   
      tool_m.source_files  = "Commom/Class/SEGTools/SEGModel/**/*"
      tool_m.public_header_files = "Commom/Class/SEGTools/SEGModel/**/*.h" 
    end  
  end   

end

